package cn.edu.nyist.integration.service;

import cn.edu.nyist.integration.common.ServerResponse;
import cn.edu.nyist.integration.entity.Category;
import cn.edu.nyist.integration.entity.ProductCredit;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface ProductService {

    PageInfo listProduct(int pageNum,int pageSize,Integer categoryId);

    List<Category> listAllCategory();

    ServerResponse delProduct(Long productId);

    ServerResponse addProduct(ProductCredit productCredit);

    ServerResponse updateProductScore(Integer score, String productName);

    ServerResponse getProductNameByCategoryId(Integer categoryId);

    ServerResponse<Map<String,Map>> getInsertData();

    ServerResponse getScoreByName(String productName);
}
